import {post} from "../../utils/req";
import {alert} from "../../components/common/alert";

export const update = async (data) => {
    try {
        await post('/private/user/update', data);
        return true;
    } catch (e) {
        alert(`更新失败：${e}`, 'error');
        return false;
    }
}
